package com.healer.service.Impl;

import com.healer.dao.TbUserMapper;
import com.healer.pojo.TbUser;
import com.healer.service.TbUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class TbUserServiceImpl implements TbUserService {
    @Autowired
    TbUserMapper tbUserMapper;


    public void setTbUserMapper(TbUserMapper tbUserMapper) {
        this.tbUserMapper = tbUserMapper;
    }

    @Override
    public List<TbUser> getUsers() {
        return tbUserMapper.getUsers();
    }

    @Override
    public int queryUser(Map map) {
        return tbUserMapper.queryUser(map);
    }

    @Override
    public List<TbUser> queryUserList(Map map) {
        return tbUserMapper.queryUserList(map);
    }

    @Override
    public void addUser(Map map) {
        tbUserMapper.addUser(map);
    }

    @Override
    public void updateUser(Map map) {
        tbUserMapper.updateUser(map);
    }

    @Override
    public void updateUserpassword(Map map) {
        tbUserMapper.updateUserPassword(map);
    }


    @Override
    public void deleteUser(Map map) {
        tbUserMapper.deleteUser(map);
    }

    @Override
    public int inspectUserId(String userId) {
        return tbUserMapper.inspectUserId(userId);
    }
}
